package com.originit.product.server.service.impl

import com.originit.product.server.dao.ProductCategoryRepository
import com.originit.product.server.entity.ProductCategory
import com.originit.product.server.service.CategoryService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service

@Service
class CategoryServiceImpl:CategoryService {

    @Autowired
    lateinit var productCategoryRepository: ProductCategoryRepository

    override fun findByTypeIn(categoryTypeList: List<Int>): List<ProductCategory> {
        return productCategoryRepository.findByCategoryTypeIn(categoryTypeList)
    }

}